import { createApp } from 'vue';
import App from '../App.vue';

const app = createApp(App)
const color=app.directive('color', (el, binding) => {
    console.log('v-color-el=',el);
    // binding.value是传递给指令的值
    el.style.color = binding.value
})

export default color